﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ManyToManyTypeList.aspx.cs" Inherits="Medianamik.UI.TypeManagement.ManyToManyTypeList" MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<a href="<%= AddURL %>" class="Action BtAjouter"><%=Resources("Medianamik_TypeManagement", "AddManyToManyType") %></a>
	<a href="#" class="Action BtAnnuler-Inactif"><%=Resources("Medianamik_Global", "Cancel") %></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:UpdatePanel ID="uptPanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
 	        <telerik:RadGrid ID="ManyToManyTypesGrid" 
	                         runat="server" 
	                         OnItemDataBound="ManyToManyTypesGrid_ItemDataBound"
	                         OnItemCommand="ManyToManyTypesGrid_ItemCommand"
	                         OnNeedDataSource="ManyToManyTypesGrid_NeedDataSource"
	                         Skin="Medianamik"
	                         EnableEmbeddedSkins="false"
	                         AutoGenerateColumns="false">
		        <MasterTableView DataKeyNames="ID">
		            <Columns>
		                <telerik:GridTemplateColumn HeaderText="<%$ Resources : Medianamik_TypeManagement, ManyToManyTypeName %>">
		                    <ItemTemplate>
		                        <asp:Label ID="lblName" runat="server"></asp:Label>
		                    </ItemTemplate>
		                </telerik:GridTemplateColumn>
		                <telerik:GridTemplateColumn HeaderText="Actions" HeaderStyle-Width="1%">
		                    <ItemStyle CssClass="Actions" />
		                    <ItemTemplate>
		                        <table cellpadding="0" cellspacing="0" border="0" align="center">
		                            <tr>
				                        <td><med:EditLink runat="server" ID="btnEditType" NavigateUrl='<%# "manytomanytypemanagement.aspx?" + Medianamik.Core.DefaultParamNames.TypeID + "=" + Eval("ID").ToString() %>' /></td>
				                        <td><med:ConfirmedDeleteButton ID="btnDeleteType" CommandArgument='<%# Eval("ID") %>' CommandName="Delete" runat="server" ToolTip="<%$ Resources: Medianamik_Global, Action_DeleteTooltip %>" ConfirmText="<%$ Resources: Medianamik_ContentManagement, ConfirmDeleTypeText %>" /></td>
			                            <td><med:ConfirmedImageButton ID="btnGenTable" runat="server" CommandName="Regen" CommandArgument='<%# Eval("ID")%>' ConfirmText='<%$ Resources: Medianamik_TypeManagement, ConfirmGenerateTableText %>' ImageUrl='/Medianamik/Images/Icones/Ico_Rafraichir.gif'></med:ConfirmedImageButton></td>
			                        </tr>
		                        </table>
		                    </ItemTemplate>
		                </telerik:GridTemplateColumn>
		            </Columns>
		            <NoRecordsTemplate>
			            <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			        </NoRecordsTemplate>
		        </MasterTableView>
	        </telerik:RadGrid>
	    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
